<?php #coding: utf-8 æ ø å ?>
<div class="indhold">
<?php

$type = $stamdata['type'];



//UNDER

if($type == "entitet" and $stamdata['type']=='gruppe'){


	
	
	if($stamdata['pc']==0 or $deltager['id']==$stamdata['deltager_id'])
	{
		?><a class="rubrik" style="float:right; width:120px" href="<? echo base_url() ?>all/rediger/normalrelationer_over/<? echo $type; ?>/<? echo $stamdata['id']; ?>"><? echo "rediger"; ?></a> <?
	}

	echo "<ul class='ink'>";
	foreach($over as $r)
	{
		$over_navn = $r['over_navn'];
		$over_id = $r['over_id'];
		echo "<li>";
		?><a class='ink' href="<? echo base_url() ?>core/vis/se/<? echo $type; ?>/<? echo $over_id; ?>/over"><? echo $over_navn; ?></a> <?
	}
	echo "</ul>";





}
elseif($type == "entitet") //altså, hvis der er tale om et individ
{
	$race_navn = $race['race_navn'];
	$race_id = $race['race_id'];
	
	if($stamdata['pc']==0 or $deltager['id']==$stamdata['deltager_id'])
	{
		?><a class="rubrik" style="float:right; width:120px" href="<? echo base_url() ?>core/rediger/normalrelationer_over/<? echo $type; ?>/<? echo $stamdata['id']; ?>"><? echo "rediger"; ?></a> <?
	}

	echo "<ul class='ink'>";
	foreach($over as $r)
	{
		$over_navn = $r['over_navn'];
		$over_id = $r['over_id'];
		echo "<li>";
		?><a class='ink' href="<? echo base_url() ?>core/vis/se/<? echo $type; ?>/<? echo $over_id; ?>/over"><? echo $over_navn; ?></a> <?
	}
	echo "</ul>";


}
elseif($type == "begivenhed") // BEGIVENHED BEGIVENHED BEGIVENHED
{




/*?><a class="rubrik" style="float:right; width:120px" href="<? echo base_url() ?>all/rediger/normalrelationer_over/<? echo $type; ?>/<? echo $stamdata['id']; ?>"><? echo "rediger"; ?></a> <?*/


	if(!empty($over))
	{
		
		
		echo "<ul class='ink'>";
		foreach ($over as $row) 
		{
			?>
			<p class="rubrik" style="font-size:0.8em" ><? echo $row['birth_navn'].": "; ?><a class='ink' href="<? echo base_url() ?>core/vis/se/begivenhed/<? echo $row['over_id']; ?>"><? echo $row['over_navn']; ?></a></p>
			<?
		}
		echo "</ul>";	
	}	
	


}
elseif($type == "sted") // STED STED STED STED
{
	?><a class="rubrik" style="float:right; width:120px" href="<? echo base_url() ?>all/rediger/normalrelationer_over/<? echo $type; ?>/<? echo $stamdata['id']; ?>"><? echo "rediger"; ?></a> <?
	echo "<h3 class='ink'>Zoom ud: </h3>";
	echo "<ul class='ink'>";
	foreach ($over as $row) 
	{
		?><li><a class="ink" href="<? echo base_url();?>core/vis/se/sted/<? echo $row['over_id'];?>/over"><? echo $row['over_navn'];?></a> 
	
<?
	}	
	echo "</ul>";	


}
?>
</div>
